<html><head>
        <link href="<?php echo base_url('assets/css/formpindahdatang.css') ?>" rel="stylesheet" type="text/css">
        <title>Laporan Pindah Datang</title>
    </head>
    <body>
        <table width="100%" border="0" align="center">
            <tr>
                <td colspan="8" class="trheader">Laporan Pindah Datang Penduduk</td>
            </tr>
            <tr>
                <td colspan="8" class="jeda">&nbsp;</td>
            </tr>
            <tr>
                <td width="5%"><div align="center"><strong>No.</strong></div></td>
              <td width="17%"><div align="center"><strong>No. Form Pindah</strong></div></td>
              <td width="11%"><div align="center"><strong>No. KK Lama</strong></div></td>
                <td width="11%"><div align="center"><strong>NIK Pemohon</strong></div></td>
                <td width="13%"><div align="center"><strong>Nama Pemohon</strong></div></td>
                <td width="12%"><div align="center"><strong>Tanggal Datang</strong></div></td>
                <td width="18%"><div align="center"><strong>Alamat Asal</strong></div></td>
              <td width="13%"><div align="center"><strong>Atur<br>Ubah - Hapus</strong></div></td>
          </tr>
            <?php
            if (isset($pindah_datang)) {
                $no = 1;
                foreach ($pindah_datang->result() as $data_pindahdatang) {
                    echo '<tr>';
                    echo '<td><div align="center">' . $no++ . '</div></td>';
                    echo '<td><div align="center">' . $data_pindahdatang->idpindah_datang . '</div></td>';
                    echo '<td>' . $data_pindahdatang->no_kk_lama . '</td>';
                    echo '<td>' . $data_pindahdatang->nik_pemohon . '</td>';
                    echo '<td>' . $data_pindahdatang->nama_pemohon . '</td>';
                    echo '<td>' . $this->tanggal->tanggal_indonesia($data_pindahdatang->tgl_datang) . '</td>';
                    echo '<td>' . $data_pindahdatang->alamat_asal . ' Dusun ' . $data_pindahdatang->dusun . ' RT ' . $data_pindahdatang->rt . ' RW ' . $data_pindahdatang->rw . ' Desa ' . $data_pindahdatang->desa . ' Kec. ' . $data_pindahdatang->kecamatan . ' Kab ' . $data_pindahdatang->kabupaten . ' Prop. ' . $data_pindahdatang->propinsi . '</td>';
                    echo '<td><div align="center"><a href="' . base_url('pindah_datang/ubah/'.$data_pindahdatang->nomor) . '"><img src="' . base_url('assets/images/ubah.png') . '"></a>  -  <a href="' . base_url('pindah_datang/hapus/'.$data_pindahdatang->nomor).'"><img src="' . base_url('assets/images/hapus.png') . '"></a></div></td>';
                    echo '</tr>';
                }
            }
            ?>

        </table>
        <br>
        <table width="419" border="0" align="center">
            <tr>
                <td colspan="2" class="jeda"><strong>Data Tercatat</strong></td>
            </tr>
            <tr>
                <td width="177">Jumlah Kepala Keluarga</td>
                <td width="232">: <?php echo $pindah_datang->num_rows(); ?> pendatang</td>
            </tr>
        </table>
    </body>
</html>
